package com.education.platform.dao;

import com.education.platform.common.dao.BaseDao;
import com.education.platform.dao.model.PointsRankModel;
import org.springframework.stereotype.Repository;
import com.education.platform.dao.entity.UserPointsDO;

import java.util.List;

/**
* describe: 积分表
* @author : tomato
* @date: 2020-06-06 03:07:32.843
**/
@Repository
public interface UserPointsDao extends BaseDao<UserPointsDO> {


    void addPoints(Float point, Integer userId);

    /**
     * 获取排名
     * @return
     */
    List<PointsRankModel> getRankList();

    PointsRankModel getRankByUserId(Integer userId);

}